package com.mcintyret.site.validation.password;

/**
 * User: mcintyret2
 * Date: 12/04/2012
 */
public enum PasswordValidationErrorCodes {

    NULL("com.mcintyret.constraints.password.null", 0),
    TOO_SHORT("com.mcintyret.constraints.password.short", 1),
    TOO_LONG("com.mcintyret.constraints.password.long", 1),
    ALL_LOWER_CASE("com.mcintyret.constraints.password.uppercase", 0),
    ALL_UPPER_CASE("com.mcintyret.constraints.password.lowercase", 0),
    NO_DIGITS("com.mcintyret.constraints.password.nodigits", 0),
    NO_LETTERS("com.mcintyret.constraints.password.noletters", 0),
    FORBIDDEN_CHAR("com.mcintyret.constraints.password.forbidden.char", 2);

    private String errorCode;
    private int expectedArgs;

    PasswordValidationErrorCodes(String errorCode, int expectedArgs) {
        this.errorCode = errorCode;
        this.expectedArgs = expectedArgs;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public int getExpectedArgs() {
        return expectedArgs;
    }


}
